Ext.define('rangoaqui.view.phone.popUpEditUser', {
    extend: 'Ext.form.Panel',
    alias: 'widget.editUser',
	id: 'editUser',
	config: {
        floating: true,
        centered: true,
        modal: true,
		width: '95%',
		height: '75%',
        styleHtmlContent: true,
		hideOnMaskTap: true,
		itemId: 'editUser',
		
        items: [
            {
                xtype: 'fieldset',
                title: 'Meus dados',
                items: [
					{
						xtype: 'hiddenfield',
						name: 'id'						
					},
                    {
                        xtype: 'textfield',
                        label: 'Nome',
                        labelWrap: true,
                        name: 'nm_usuario',
                        placeHolder: 'seu nome real'
                    },
					{
                        xtype: 'emailfield',
                        label: 'Email',
                        labelWrap: true,
                        name: 'email',
                        placeHolder: 'seu@email.com'
                    },
					
                    {
                        xtype: 'passwordfield',
                        label: 'Senha',
                        labelWrap: true,
                        name: 'senha',
                        placeHolder: 'a sua senha'
                    },
                    
                    {
                        xtype: 'urlfield',
                        label: 'Foto',
                        labelWrap: true,
                        name: 'url_img',
                        placeHolder: 'http://img.com'
                    }
                ]
            },
            {
                xtype: 'button',
                itemId: 'save',
				action: 'salvarDados',
                text: 'Salvar!',
				
				style: 'margin-top: 7px; margin: auto',
				ui: 'confirm'
            },
			{
				xtype: 'spacer',
				height: '7px'
			},
			{
                xtype: 'button',
                itemId: 'save',
				action: 'cancelarEditUser',
                text: 'Cancelar',
				
				style: 'margin-top: 7px; margin: auto',
				ui: 'decline'
            }
        ]
		
	}
		
});
